package chords;

import java.io.Serializable;

public class TimedChord implements Serializable {
    private static final long serialVersionUID = -9131886343368760273L;

    private final long time;
    private final EChord chord;
    private final EInstrument instrument;

    public TimedChord(long time, EChord chord, EInstrument instrument) {
	super();
	this.instrument = instrument;
	this.time = time;
	this.chord = chord;
    }

    public long getTime() {
	return time;
    }

    public EChord getChord() {
	return chord;
    }

    public EInstrument getInstrument() {
	return this.instrument;
    }

    @Override
    public String toString() {
	return "Relative Time (ms): " + time + ", Instrument: " + instrument + ", Chord: " + chord;
    }
}